package com.lyz.auth.domain.convert;

import com.lyz.auth.domain.entity.AuthUserBo;
import com.lyz.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户bo转换器
 *
 * @author: YizeLee
 * @date: 2024/4/26
 */
@Mapper
public interface AuthUserBoConverter {

    AuthUserBoConverter INSTANCE = Mappers.getMapper(AuthUserBoConverter.class);

    AuthUser convertBoToEntity(AuthUserBo authUserBo);

    AuthUserBo convertEntityToBo(AuthUser authUser);

}
